package com.dmap.knowledge.vo;

import com.dmap.knowledge.po.ArticleColumn;
import com.dmap.knowledge.po.Scene;

import java.io.Serializable;

public class ArticleColumnVo implements Serializable {
    
    private String columnId;            //columnId
    private String lang;               //语言
    private String iconUrl;             //图标地址
    private String name;               //名称
    private String key;                 //关键字
    private int status;                 //状态
    private int sort;                  //排序
    private String comment;             //注释
    private String sceneName;           //场景名称
    private long updateTime;            //更新时间
    private int relevanceNumber;        //关联文章数
    private String sceneId;               //场景id
    private int appColumnNumber;        //app的关联数
    
    public ArticleColumnVo(ArticleColumn articleColumn, Scene scene) {
        if (articleColumn.getId() != null) {
            columnId = articleColumn.getId().toString();
        }
        if (articleColumn.getLang() != null) {
            this.lang = articleColumn.getLang();
            
        }
        if (articleColumn.getIconUrl() != null) {
            this.iconUrl = articleColumn.getIconUrl();
            
        }
        if (articleColumn.getName() != null) {
            this.name = articleColumn.getName();
            
        }
        if (articleColumn.getKeyName() != null) {
            this.key = articleColumn.getKeyName();
            
        }
        if (articleColumn.getStatus() != null) {
            this.status = articleColumn.getStatus();
        }
        if (articleColumn.getSort() != null) {
            this.sort = articleColumn.getSort();
        }
        if (articleColumn.getDescription() != null) {
            this.comment = articleColumn.getDescription();
        }
        if (scene.getName() != null) {
            this.sceneName = scene.getName();
        }
        if (articleColumn.getUpdateTime() != null) {
            this.updateTime = articleColumn.getUpdateTime();
        }
        if (articleColumn.getSceneId() != null) {
            this.sceneId = articleColumn.getSceneId().toString();
        }
    }
    
    public int getAppColumnNumber() {
        return appColumnNumber;
    }
    
    public void setAppColumnNumber(int appColumnNumber) {
        this.appColumnNumber = appColumnNumber;
    }
    
    public String getColumnId() {
        return columnId;
    }
    
    public void setColumnId(String columnId) {
        this.columnId = columnId;
    }
    
    public int getRelevanceNumber() {
        return relevanceNumber;
    }
    
    public void setRelevanceNumber(int relevanceNumber) {
        this.relevanceNumber = relevanceNumber;
    }
    
    public String getLang() {
        return lang;
    }
    
    public void setLang(String lang) {
        this.lang = lang;
    }
    
    public String getIconUrl() {
        return iconUrl;
    }
    
    public void setIconUrl(String iconUrl) {
        this.iconUrl = iconUrl;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public String getKey() {
        return key;
    }
    
    public void setKey(String key) {
        this.key = key;
    }
    
    public int getStatus() {
        return status;
    }
    
    public void setStatus(int status) {
        this.status = status;
    }
    
    public int getSort() {
        return sort;
    }
    
    public void setSort(int sort) {
        this.sort = sort;
    }
    
    public String getComment() {
        return comment;
    }
    
    public void setComment(String comment) {
        this.comment = comment;
    }
    
    public String getSceneName() {
        return sceneName;
    }
    
    public void setSceneName(String sceneName) {
        this.sceneName = sceneName;
    }
    
    public long getUpdateTime() {
        return updateTime;
    }
    
    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }
    
    
    public String getSceneId() {
        return sceneId;
    }
    
    public void setSceneId(String sceneId) {
        this.sceneId = sceneId;
    }
}
